function loginSubmit() {
	var username = $('#login_username').val();
	var password = $('#login_password').val();		
	var is_cookie = $('#is_cookie').attr('checked');
	var param = {'username':username, 'password':password, 'is_cookie':is_cookie};
	is_cookie = (is_cookie==true)?1:0;
	
	$.post(GIDAFF.siteUrl+ "user/do_login", param, function(data){
		if(data.error) {
			msg = '<p class="not_error"><span class="img"></span>'+data.error+'<span class="close"></span></p>';
			$('#message_holder').html(msg);
		} else {
			alert('You logged in as '+data.name);
			window.location = GIDAFF.siteUrl + "user";
		}
	}, "json");	
	return false;
}